package com.octopus.core.collector;

import com.octopus.core.Response;
import com.octopus.core.result.Result;
import lombok.extern.slf4j.Slf4j;

/**
 * 默认数据收集器
 *
 * <p>仅仅打印收集的数据信息日志。
 *
 * @author shoulai.yang@gmail.com
 * @date 2019/07/31
 */
@Slf4j
public class DefaultCollector implements Collector {

  @Override
  public void collect(Result result, Response response) {
    if (result != null) {
      log.info(result.toString());
    }
  }
}
